package com.hevery.security.core.validate.code;

import com.hevery.security.core.properties.SecurityConstants;

/**
 * @author: zhy
 * @description:
 * @date: created on 2017/11/16
 * @modified by:
 */
public enum ValidateCodeType {

    SMS{
        @Override
        public String getParamNameOnValidate() {
            return SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_SMS;
        }
    },

    IMAGE{
        @Override
        public String getParamNameOnValidate() {
            return SecurityConstants.DEFAULT_PARAMETER_NAME_CODE_IMAGE;
        }
    };

    /**
     * 校验时从请求中获取参数的名字
     * @return
     */
    public abstract String getParamNameOnValidate();

}
